package com.kk.xhr.admin.controller.request;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 修改密码请求
 *
 * @author kkmystery
 * @version 1.0 2021/4/8
 * @since 1.0.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PasswordModifyRequest {
    @NotBlank
    @Size(min = 6, max = 20)
    private String oldPassword;
    @NotBlank
    @Size(min = 6, max = 20)
    private String newPassword;
}
